package com.system.boot.company.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.system.api.company.entity.po.SysCompany;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import org.apache.ibatis.annotations.Select;
import org.springframework.validation.annotation.Validated;
import org.yang.common.core.exception.BaseException;
import org.yang.database.orm.entity.BaseQuery;
import org.yang.database.orm.entity.Options;

import java.util.List;

/**
 * @author: lslands
 * @description:
 * @version：v1.0
 * @date: 2024/6/1 21:32
 */
@Validated
public interface CompanyService extends IService<SysCompany> {

    /**
     * 校验指定字段是否重复
     * @param field 字段
     * @param params 被校验参数
     * @author lslands
     * @date 2024/5/16 00:39
     * @throws BaseException 字段重复异常
     */
    void isExists(@NotBlank String field, String params) throws BaseException;


    /**
     * 查询企业列表树
     * @param companyId 当前企业ID
     * @return 列表树
     */
    List<Options<Integer>> listOptions(Long companyId) throws BaseException;










}
